#!/bin/bash
#
if [ -z $1 ]; then
	echo "帮助: $0 <select|update|delete|insert>"
	exit 69
fi
db_user=root
db_password=WWW.004.com

number=$(mysqladmin -u${db_user} -p${db_password} extended-status 2> /dev/null | grep -w "Com_$1" | awk '{print $4}')

echo $number
